package com.tangyuan.live.service;

import com.tangyuan.common.result.Result;
import com.tangyuan.common.result.ResultCodeEnum;
import com.tangyuan.live.entity.dto.GiveGiftDto;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tangyuan.live.entity.vo.GiftRankingVo;
import com.tangyuan.model.live.LiveGiveGift;

import java.math.BigDecimal;
import java.util.List;

public interface LiveGiveGiftService extends IService<LiveGiveGift> {

    /**
     * 获取直播的总收入
     */
    BigDecimal getLiveIncome(Long roomId);

    List<GiftRankingVo> giftRanking(Long roomId);

    Result<ResultCodeEnum> giveGifts(Long userId, GiveGiftDto dto);

    BigDecimal getUserConsumePrice(Long liveUserId, Long liveRoomId);
}
